package com.igeekhome.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName OrderListDto
 * @Author admin(汪璇)
 * @Date 2020/1/19 17:55
 * @Description TODO
 */

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class OrderListDto {
    private Integer orderid;
    
    private String orderSource;
    
    private Integer assignBranchStaffId;
    
    //调派网点员工姓名
    private String assignBranchStaffName;
    
    private Integer caseNumber;
    
    private BigDecimal weight;
    
    private String sender;
    
    //寄件人省
    private String province;
    
    //寄件人市
    private String city;
    
    //寄件人区
    private String area;
    
    //寄件人地址
    private String address;
    
    private String sendTel;
    
    private String sendAddress;
    
    private String remark;
    
    private String recipients;
    
    //收件人省
    private String recipientProvince;
    
    //收件人市
    private String recipientCity;
    
    //收件人区
    private String recipientArea;
    
    //收件人地址
    private String recipientAddress;
    
    private String receiveTel;
    
    private String consigneeAddress;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date addtime;
    
    private String catalogueState;
    
    private Date updateTime;
    
    private Integer waybillId;
    
    private Integer distId;
    
    @Override
    public String toString() {
        return "OrderListDto{" +
                "orderid=" + orderid +
                ", orderSource='" + orderSource + '\'' +
                ", assignBranchStaffId=" + assignBranchStaffId +
                ", assignBranchStaffName='" + assignBranchStaffName + '\'' +
                ", caseNumber=" + caseNumber +
                ", weight=" + weight +
                ", sender='" + sender + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", area='" + area + '\'' +
                ", address='" + address + '\'' +
                ", sendTel='" + sendTel + '\'' +
                ", sendAddress='" + sendAddress + '\'' +
                ", remark='" + remark + '\'' +
                ", recipients='" + recipients + '\'' +
                ", recipientProvince='" + recipientProvince + '\'' +
                ", recipientCity='" + recipientCity + '\'' +
                ", recipientArea='" + recipientArea + '\'' +
                ", recipientAddress='" + recipientAddress + '\'' +
                ", receiveTel='" + receiveTel + '\'' +
                ", consigneeAddress='" + consigneeAddress + '\'' +
                ", addtime=" + addtime +
                ", catalogueState='" + catalogueState + '\'' +
                ", updateTime=" + updateTime +
                ", waybillId=" + waybillId +
                ", distId=" + distId +
                '}';
    }
}
